package com.cnswhy.cloud.server.merchant;

import com.cnswhy.cloud.security.starter.annotation.EnableCnswhyCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Repository;

@EnableCnswhyCloudResourceServer
@SpringBootApplication
//开启Spring Cloud Security权限注解
//@EnableGlobalMethodSecurity(prePostEnabled = true)
//@MapperScan("com.cnswhy.cloud.server.core")
@MapperScan(
        basePackages = {"com.cnswhy.cloud",},
        annotationClass = Repository.class)
@ComponentScan({"com.cnswhy.cloud"})
public class CnswhyServerMerchantApplication {

    public static void main(String[] args) {
        SpringApplication.run(CnswhyServerMerchantApplication.class, args);
    }

}
